package com.atguigu.client;

import com.atguigu.entity.CartInfo;
import com.atguigu.entity.OrderInfo;
import com.atguigu.result.RetVal;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(value = "shop-order")
public interface OrderFeignClient {
    @GetMapping("/order/confirm")
    public RetVal confirm();
    //根据订单id获取订单的信息
    @GetMapping("/order/getOrderInfo/{orderId}")
    public OrderInfo getOrderInfo(@PathVariable Long orderId);
    //保存订单与详情信息  给保存秒杀订单提供接口 进行远程调用
    @PostMapping("/order/saveOrderInfo")
    public Long saveOrderInfo(@RequestBody OrderInfo orderInfo);
}
